package org.nfIt.th07;

import java.time.LocalDate;

/**
 * ClossName:MainTest
 * Pakage:org.nfIt.th07
 * Description
 *
 * @Author L
 * @Create 2024/5/19 20:07
 * @Version 2023.1.3
 */
public class MainTest {
    public static void main(String[] args) {

        Novel novel = new Novel("万古神帝","多鱼","0004", LocalDate.now());
        TechBook techBook = new TechBook("Java SE","Java之父","0005", LocalDate.now());
        Bookshelf<Book> b = new Bookshelf<>();
        b.addBook(novel);
        b.addBook(techBook);
        System.out.println(b.getBooksByISBN("0005"));
        System.out.println(b.getBooksByAuthor("多鱼"));


    }
}
